// site.isscloud.project.domain.PjRealtimeTemperatureDataIssue.java
package site.isscloud.project.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 实时温度异常数据对象 pj_realtime_temperature_data_issue
 */
public class PjRealtimeTemperatureDataIssue {
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备编号 */
    private String deviceNo;

    /** 通道号 */
    private Integer channelNo;

    /** 米标位置 */
    private Integer meter;

    /** 异常高温 */
    private BigDecimal maxTemperatures;

    /** 异常低温 */
    private BigDecimal minTemperatures;

    /** 数据采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 生成列-日期 */
    private Date dataDate;

    /** 生成列-小时 */
    private Integer dataHour;

    /** 生成列-分钟 */
    private Integer dataMinute;

    // getter and setter
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public Integer getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(Integer channelNo) {
        this.channelNo = channelNo;
    }

    public Integer getMeter() {
        return meter;
    }

    public void setMeter(Integer meter) {
        this.meter = meter;
    }

    public BigDecimal getMaxTemperatures() {
        return maxTemperatures;
    }

    public void setMaxTemperatures(BigDecimal maxTemperatures) {
        this.maxTemperatures = maxTemperatures;
    }

    public BigDecimal getMinTemperatures() {
        return minTemperatures;
    }

    public void setMinTemperatures(BigDecimal minTemperatures) {
        this.minTemperatures = minTemperatures;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getDataDate() {
        return dataDate;
    }

    public void setDataDate(Date dataDate) {
        this.dataDate = dataDate;
    }

    public Integer getDataHour() {
        return dataHour;
    }

    public void setDataHour(Integer dataHour) {
        this.dataHour = dataHour;
    }

    public Integer getDataMinute() {
        return dataMinute;
    }

    public void setDataMinute(Integer dataMinute) {
        this.dataMinute = dataMinute;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceNo", getDeviceNo())
                .append("channelNo", getChannelNo())
                .append("meter", getMeter())
                .append("maxTemperatures", getMaxTemperatures())
                .append("minTemperatures", getMinTemperatures())
                .append("createTime", getCreateTime())
                .append("dataDate", getDataDate())
                .append("dataHour", getDataHour())
                .append("dataMinute", getDataMinute())
                .toString();
    }
}